package com.hdoit.kylin.logical.money.service.impl;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
import com.hdoit.kylin.logical.money.dao.IAssetDao;
import com.hdoit.kylin.logical.money.model.Asset;
import com.hdoit.kylin.logical.money.service.IAssetService;
import com.hdoit.kylin.logical.viewmodel.money.AssetSearch;

/**
*@author liyaochong
*@email
*@createtime 2017年07月27日 14:59:02
*@comment
*/
@Component
public class AssetServiceImpl extends SuperService<Asset> implements IAssetService{
	
	private IAssetDao assetDao;
	
	

	public IAssetDao getAssetDao() {
		return assetDao;
	}
    @Resource
	public void setAssetDao(IAssetDao assetDao) {
		this.assetDao = assetDao;
	}

	@Override
	public int queryCountByGroupId(AssetSearch search) {
		return assetDao.queryCountByGroupId(search);
	}

	@Override
	public List<Asset> queryListByGroupId(AssetSearch search, PagerModel pagerModel) {
			return assetDao.queryListByGroupId(search,pagerModel);
	}
}